package com.jacklin.account.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jacklin.account.domain.Account;
import com.jacklin.account.dto.OrderPayDTO;
import org.jacklin.common.api.vo.Result;

import java.math.BigDecimal;

/**
 * AccountService服务层
 *
 * @author: jacklin
 * @since: 2022/3/26 14:25
 */
public interface AccountService extends IService<Account> {

    /**
     * 扣减余额
     *
     * @author: jacklin
     * @date: 2022/8/4 10:42
     **/
    Boolean decrease(Integer userId, Integer accountId, BigDecimal money);

    /**
     * 用户购买商品下单
     *
     * @author: jacklin
     * @date: 2022/6/25 15:32
     **/
    Result<?> orderPay(OrderPayDTO orderPayDTO);
}
